//
//  HRZAcceptAddressCell.m
//  EMarket
//
//  Created by 石头 on 2018/5/21.
//  Copyright © 2018 好日子. All rights reserved.
//

#import "HRZAcceptAddressCell.h"

#import "HRZAddressItem.h"

@interface HRZAcceptAddressCell()

@property (weak, nonatomic) IBOutlet UILabel *acceptName;
@property (weak, nonatomic) IBOutlet UILabel *acceptPhone;
@property (weak, nonatomic) IBOutlet UILabel *acceptAddress;


@end

@implementation HRZAcceptAddressCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

- (void)setAddressItem:(HRZAddressItem *)addressItem {
    _addressItem = addressItem;
    
    self.acceptName.text = _addressItem.userName;
    self.acceptPhone.text = _addressItem.userPhone;
    self.acceptAddress.text = [NSString stringWithFormat:@"%@ %@", _addressItem.chooseAdress, _addressItem.userAdress];
}

@end
